
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>依赖清理优化算法详解-基于JavaScript引擎的SMI进一步压榨性能 · petite-vue源码剖析</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="^_^肥仔John">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-comscore/test.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="6_trigger_and_scheduler.html" />
    
    
    <link rel="prev" href="4_cleanup_algorithm.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        <li class="header">前言</li>
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    《Petite-Vue源码剖析》简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../0_intro/1_reason_for_source_reading.html">
            
                <a href="../0_intro/1_reason_for_source_reading.html">
            
                    
                    为什么要读源码
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">在线渲染</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../1_online_rendering/0_intro.html">
            
                <a href="../1_online_rendering/0_intro.html">
            
                    
                    章节介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../1_online_rendering/1_start_from_static_view.html">
            
                <a href="../1_online_rendering/1_start_from_static_view.html">
            
                    
                    从静态视图首次渲染开始
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="../1_online_rendering/2_initial_rendering_and_rerendering_for_v-if.html">
            
                <a href="../1_online_rendering/2_initial_rendering_and_rerendering_for_v-if.html">
            
                    
                    条件v-if的首次渲染和重新渲染
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="../1_online_rendering/3_initial_rendering_and_rerendering_for_v-for.html">
            
                <a href="../1_online_rendering/3_initial_rendering_and_rerendering_for_v-for.html">
            
                    
                    循环v-for的首次渲染和重新渲染
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="../1_online_rendering/4_directives/1_attribute_binding.html">
            
                <a href="../1_online_rendering/4_directives/1_attribute_binding.html">
            
                    
                    属性绑定v-bind的工作原理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="../1_online_rendering/4_directives/2_event_binding.html">
            
                <a href="../1_online_rendering/4_directives/2_event_binding.html">
            
                    
                    事件绑定v-on的工作原理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="../1_online_rendering/4_directives/3_bidirectional_binding.html">
            
                <a href="../1_online_rendering/4_directives/3_bidirectional_binding.html">
            
                    
                    双向绑定v-model的工作原理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="../1_online_rendering/4_directives/4_ref.html">
            
                <a href="../1_online_rendering/4_directives/4_ref.html">
            
                    
                    特殊指令ref的工作原理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="../1_online_rendering/5_tips_for_template.html">
            
                <a href="../1_online_rendering/5_tips_for_template.html">
            
                    
                    优化手段template的原理和使用技巧
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">响应式系统</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="0_intro.html">
            
                <a href="0_intro.html">
            
                    
                    章节介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="1_reactive_object_array.html">
            
                <a href="1_reactive_object_array.html">
            
                    
                    逐行解读reactive如何构建对象和数组的响应式对象
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="2_reactive_map_set.html">
            
                <a href="2_reactive_map_set.html">
            
                    
                    逐行解读reactive如何构建Map和Set的响应式对象
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="3_register_side_effect.html">
            
                <a href="3_register_side_effect.html">
            
                    
                    逐行解读effect如何注册副作用函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.5" data-path="4_cleanup_algorithm.html">
            
                <a href="4_cleanup_algorithm.html">
            
                    
                    依赖清理优化算法详解-算法思路
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="3.6" data-path="5_smi.html">
            
                <a href="5_smi.html">
            
                    
                    依赖清理优化算法详解-基于JavaScript引擎的SMI进一步压榨性能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.7" data-path="6_trigger_and_scheduler.html">
            
                <a href="6_trigger_and_scheduler.html">
            
                    
                    逐行解读trigger和调度器
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">沙箱模型</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../3_sandbox.html">
            
                <a href="../3_sandbox.html">
            
                    
                    模板表达式的沙箱模型
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >依赖清理优化算法详解-基于JavaScript引擎的SMI进一步压榨性能</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#&#x4F9D;&#x8D56;&#x6E05;&#x7406;&#x4F18;&#x5316;&#x7B97;&#x6CD5;&#x8BE6;&#x89E3;-&#x57FA;&#x4E8E;javascript&#x5F15;&#x64CE;&#x7684;smi&#x8FDB;&#x4E00;&#x6B65;&#x538B;&#x69A8;&#x6027;&#x80FD;"><b>1. </b>&#x4F9D;&#x8D56;&#x6E05;&#x7406;&#x4F18;&#x5316;&#x7B97;&#x6CD5;&#x8BE6;&#x89E3;-&#x57FA;&#x4E8E;JavaScript&#x5F15;&#x64CE;&#x7684;SMI&#x8FDB;&#x4E00;&#x6B65;&#x538B;&#x69A8;&#x6027;&#x80FD;</a></li></ul></div><h1 id="&#x4F9D;&#x8D56;&#x6E05;&#x7406;&#x4F18;&#x5316;&#x7B97;&#x6CD5;&#x8BE6;&#x89E3;-&#x57FA;&#x4E8E;javascript&#x5F15;&#x64CE;&#x7684;smi&#x8FDB;&#x4E00;&#x6B65;&#x538B;&#x69A8;&#x6027;&#x80FD;"><a name="&#x4F9D;&#x8D56;&#x6E05;&#x7406;&#x4F18;&#x5316;&#x7B97;&#x6CD5;&#x8BE6;&#x89E3;-&#x57FA;&#x4E8E;javascript&#x5F15;&#x64CE;&#x7684;smi&#x8FDB;&#x4E00;&#x6B65;&#x538B;&#x69A8;&#x6027;&#x80FD;" class="anchor-navigation-ex-anchor" href="#&#x4F9D;&#x8D56;&#x6E05;&#x7406;&#x4F18;&#x5316;&#x7B97;&#x6CD5;&#x8BE6;&#x89E3;-&#x57FA;&#x4E8E;javascript&#x5F15;&#x64CE;&#x7684;smi&#x8FDB;&#x4E00;&#x6B65;&#x538B;&#x69A8;&#x6027;&#x80FD;"><i class="fa fa-link" aria-hidden="true"></i></a>1. &#x4F9D;&#x8D56;&#x6E05;&#x7406;&#x4F18;&#x5316;&#x7B97;&#x6CD5;&#x8BE6;&#x89E3;-&#x57FA;&#x4E8E;JavaScript&#x5F15;&#x64CE;&#x7684;SMI&#x8FDB;&#x4E00;&#x6B65;&#x538B;&#x69A8;&#x6027;&#x80FD;</h1>
<p><code>maxMarkerBits = 30</code>&#x8868;&#x793A;&#x4EC5;&#x652F;&#x6301;effect&#x5D4C;&#x5957;31&#x5C42;&#xFF0C;&#x6CE8;&#x91CA;&#x4E2D;&#x63CF;&#x8FF0;&#x8BE5;&#x503C;&#x662F;&#x56E0;&#x4E3A;&#x60F3;&#x8BA9;JavaScript&#x5F71;&#x54CD;&#x4F7F;&#x7528;SMI&#x3002;&#x90A3;&#x4E48;&#x4EC0;&#x4E48;&#x662F;SMI&#x5462;&#xFF1F;</p>
<p>&#x7531;&#x4E8E;ECMAScript&#x6807;&#x51C6;&#x7EA6;&#x5B9A;<code>number</code>&#x6570;&#x5B57;&#x9700;&#x8981;&#x8F6C;&#x6362;&#x4E3A;64&#x4F4D;&#x53CC;&#x7CBE;&#x5EA6;&#x6D6E;&#x70B9;&#x6570;&#x5904;&#x7406;&#xFF0C;&#x4F46;&#x6240;&#x6709;&#x6570;&#x5B57;&#x90FD;&#x7528;64&#x4F4D;&#x5B58;&#x50A8;&#x548C;&#x5904;&#x7406;&#x662F;&#x5341;&#x5206;&#x4F4E;&#x6548;&#x7684;&#xFF0C;&#x6240;&#x4EE5;V8&#x5185;&#x90E8;&#x91C7;&#x7528;&#x5176;&#x5B83;&#x5185;&#x5B58;&#x8868;&#x793A;&#x65B9;&#x5F0F;&#xFF08;&#x5982;32&#x4F4D;&#xFF09;&#x7136;&#x540E;&#x5411;&#x5916;&#x63D0;&#x4F9B;64&#x4F4D;&#x8868;&#x73B0;&#x7684;&#x7279;&#x6027;&#x5373;&#x53EF;&#x3002;&#x5176;&#x4E2D;&#x6570;&#x7EC4;&#x5408;&#x6CD5;&#x7D22;&#x5F15;&#x8303;&#x56F4;&#x662F;<code>[0, 2^32 - 2]</code>&#xFF0C;V8&#x5F15;&#x64CE;&#x5C31;&#x662F;&#x91C7;&#x7528;32&#x4F4D;&#x7684;&#x65B9;&#x5F0F;&#x6765;&#x5B58;&#x50A8;&#x8FD9;&#x4E9B;&#x5408;&#x6CD5;&#x7684;&#x4E0B;&#x6807;&#x6570;&#x5B57;&#x3002;&#x53E6;&#x5916;&#xFF0C;&#x6240;&#x6709;&#x5728;<code>[0, 2^32 - 2]</code>&#x5185;&#x7684;&#x6570;&#x5B57;&#x90FD;&#x4F1A;&#x4F18;&#x5148;&#x4F7F;&#x7528;32&#x4F4D;&#x4E8C;&#x8FDB;&#x5236;&#x8865;&#x7801;&#x7684;&#x65B9;&#x5F0F;&#x5B58;&#x50A8;&#x3002;</p>
<p>&#x9488;&#x5BF9;32&#x4F4D;&#x6709;&#x7B26;&#x53F7;&#x4F4D;&#x8303;&#x56F4;&#x5185;&#x7684;&#x6574;&#x578B;&#x6570;&#x5B57;V8&#x4E3A;&#x5176;&#x5B9A;&#x4E49;&#x4E86;&#x4E00;&#x79CD;&#x7279;&#x6B8A;&#x7684;&#x8868;&#x793A;&#x6CD5;<code>SMI</code>(&#x975E;<code>SMI</code>&#x7684;&#x6570;&#x5B57;&#x5219;&#x88AB;&#x5B9A;&#x4E49;&#x4E3A;<code>HeapNumber</code>)&#xFF0C;&#x800C;V8&#x5F15;&#x64CE;&#x9488;&#x5BF9;SMI&#x542F;&#x7528;&#x7279;&#x6B8A;&#x7684;&#x4F18;&#x5316;&#xFF1A;<em>&#x5F53;&#x4F7F;&#x7528;SMI&#x5185;&#x7684;&#x6570;&#x5B57;&#x65F6;&#xFF0C;&#x5F15;&#x64CE;&#x4E0D;&#x9700;&#x8981;&#x4E3A;&#x5176;&#x5206;&#x914D;&#x4E13;&#x95E8;&#x7684;&#x5185;&#x5B58;&#x5B9E;&#x4F53;&#xFF0C;&#x5E76;&#x4F1A;&#x542F;&#x7528;&#x5FEB;&#x901F;&#x6574;&#x578B;&#x64CD;&#x4F5C;</em>&#x3002;</p>
<p>&#x5BF9;&#x4E8E;&#x975E;<code>SMI</code>&#x7684;&#x6570;&#x5B57;</p>
<pre><code class="lang-js"><span class="hljs-keyword">let</span> o = {
  x: <span class="hljs-number">42</span>, <span class="hljs-comment">// SMI</span>
  y: <span class="hljs-number">4.2</span> <span class="hljs-comment">// HeapNumber</span>
}
</code></pre>
<p>&#x5185;&#x5B58;&#x7ED3;&#x6784;&#x4E3A;<code>HeapNumber{ value: 4.2, address: 1 }</code>&#x548C;<code>JSObject{ x: 42, y: 1 }</code>&#xFF0C;&#x7531;&#x4E8E;x&#x503C;&#x7C7B;&#x578B;&#x4E3A;<code>SMI</code>&#x56E0;&#x6B64;&#x76F4;&#x63A5;&#x5B58;&#x50A8;&#x5728;&#x5BF9;&#x8C61;&#x4E0A;&#xFF0C;&#x800C;y&#x4E3A;<code>HeapNumber</code>&#x5219;&#x9700;&#x8981;&#x5206;&#x914D;&#x4E00;&#x4E2A;&#x72EC;&#x7ACB;&#x7684;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#x5B58;&#x653E;&#xFF0C;&#x5E76;&#x901A;&#x8FC7;&#x6307;&#x9488;&#x8BA9;&#x5BF9;&#x8C61;&#x7684;y&#x5C5E;&#x6027;&#x6307;&#x5411;<code>HeapNumber</code>&#x5B9E;&#x4F8B;&#x7684;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#x3002;</p>
<p>&#x7136;&#x800C;&#x5728;&#x4FEE;&#x6539;&#x503C;&#x65F6;&#xFF0C;&#x7136;&#x540E;x&#x4E3A;<code>SMI</code>&#x6240;&#x4EE5;&#x53EF;&#x4EE5;&#x539F;&#x5730;&#x4FEE;&#x6539;&#x5185;&#x5B58;&#x4E2D;&#x7684;&#x503C;&#xFF0C;&#x800C;<code>HeapNumber</code>&#x4E3A;&#x4E0D;&#x53EF;&#x53D8;&#xFF0C;&#x56E0;&#x6B64;&#x5FC5;&#x987B;&#x518D;&#x5206;&#x914D;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#x5B58;&#x653E;&#x65B0;&#x503C;&#xFF0C;&#x5E76;&#x4FEE;&#x6539;<code>o.y</code>&#x4E2D;&#x7684;&#x5185;&#x5B58;&#x5730;&#x5740;&#x3002;&#x90A3;&#x4E48;&#x5728;&#x6CA1;&#x6709;&#x542F;&#x7528;<code>Mutable HeapNumber</code>&#x65F6;&#xFF0C;&#x5982;&#x4E0B;&#x4EE3;&#x7801;&#x5C06;&#x4EA7;&#x751F;<code>1.1</code>&#x3001;<code>1.2</code>&#x548C;<code>1.3</code>3&#x4E2A;&#x4E34;&#x65F6;&#x5B9E;&#x4F8B;&#x3002;</p>
<pre><code class="lang-js"><span class="hljs-keyword">let</span> o = { x: <span class="hljs-number">1.1</span> }
<span class="hljs-keyword">for</span> (<span class="hljs-keyword">let</span> i = <span class="hljs-number">0</span>; i &lt; <span class="hljs-number">4</span>; ++i) {
  o.x += <span class="hljs-number">1</span>;
}
</code></pre>
<p>&#x6709;<code>SMI</code>&#x662F;&#x5E26;&#x7B26;&#x53F7;&#x4F4D;&#x7684;&#xFF0C;&#x90A3;&#x4E48;&#x5B9E;&#x9645;&#x5B58;&#x50A8;&#x6570;&#x5B57;&#x662F;31&#x4F4D;&#xFF0C;&#x56E0;&#x6B64;&#x8BBE;&#x7F6E;<code>maxMarkerBits = 30</code>&#x4E14;&#x901A;&#x8FC7;<code>if (effectTrackDepth &lt;= maxMarkerBits)</code>&#x5224;&#x65AD;&#x5C42;&#x7EA7;&#xFF0C;&#x5373;&#x5F53;effect&#x5D4C;&#x5957;&#x5230;31&#x5C42;&#x65F6;&#x4E0D;&#x518D;&#x4F7F;&#x7528;&#x65E0;&#x7528;&#x4F9D;&#x8D56;&#x6E05;&#x7406;&#x4F18;&#x5316;&#x7B97;&#x6CD5;&#x3002;&#x800C;&#x4F18;&#x5316;&#x7B97;&#x6CD5;&#x4E2D;&#x91C7;&#x7528;&#x7684;&#x662F;&#x4E8C;&#x8FDB;&#x5236;&#x4F4D;&#x5BF9;&#x4E0A;&#x4E00;&#x8F6E;&#x5DF2;&#x6536;&#x96C6;&#x548C;&#x672C;&#x8F6E;&#x6536;&#x96C6;&#x7684;&#x4F9D;&#x8D56;&#x8FDB;&#x884C;&#x6BD4;&#x8F83;&#xFF0C;&#x4ECE;&#x800C;&#x6E05;&#x7406;&#x65E0;&#x7528;&#x4F9D;&#x8D56;&#x3002;&#x82E5;<code>n</code>&#x548C;<code>w</code>&#x503C;&#x6240;&#x5360;&#x4F4D;&#x6570;&#x8D85;&#x8FC7;31&#x4F4D;&#x5219;&#x5185;&#x90E8;&#x4F1A;&#x91C7;&#x7528;<code>HeapNumber</code>&#x5B58;&#x50A8;&#xFF0C;&#x90A3;&#x4E48;&#x5728;&#x4F4D;&#x8FD0;&#x7B97;&#x4E0A;&#x6027;&#x80FD;&#x5C06;&#x6709;&#x6240;&#x4E0B;&#x964D;&#x3002;</p>
<p>&#x5176;&#x5B9E;&#x6211;&#x4EEC;&#x8FD8;&#x770B;&#x5230;&#x82E5;<code>effectTrackDepth</code>&#x7B49;&#x4E8E;31&#x65F6;&#x8FD8;&#x4F1A;&#x6267;&#x884C;<code>trackOpBit = 1 &lt;&lt; ++effectTrackDepth</code>&#xFF0C;&#x8FD9;&#x4F1A;&#x5BFC;&#x81F4;<code>trackOpBit</code>&#x4ECE;<code>SMI</code>&#x7684;&#x5B58;&#x50A8;&#x65B9;&#x5F0F;&#x8F6C;&#x6362;&#x4E3A;<code>HeapNumber</code>&#xFF0C;&#x90A3;&#x662F;&#x4E0D;&#x662F;&#x53EF;&#x4EE5;&#x52A0;&#x4E2A;&#x5224;&#x65AD;&#x4FEE;&#x6539;&#x6210;&#x4E0B;&#x9762;&#x8FD9;&#x6837;&#x5462;&#xFF01;</p>
<pre><code class="lang-ts"><span class="hljs-keyword">const</span> maxMarkerBit = <span class="hljs-number">1</span> &lt;&lt; <span class="hljs-number">30</span>

<span class="hljs-keyword">if</span> (trackOpBit &amp; maxMarkerBit !== <span class="hljs-number">1</span>) {
  trackOpBit = <span class="hljs-number">1</span> &lt;&lt; ++effectTrackDepth
}
</code></pre>
<script type="text/javascript">
  /**
   * Donation
   */
  function showQR(){
    var rewardButton = document.getElementById('rewardButton')
    var qr = document.getElementById('QR')
    if (rewardButton) {
      rewardButton.style.display = 'none'
    }
    if (qr) {
      qr.style.display = 'block'
    }
  }
  setInterval(showQR, 1000)

  /**
   * Baidu analysis
   */
  var _hmt = _hmt || [];
  (function() {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?8bca1e3aa362a7f85dbe8304cff65225";
    var s = document.getElementsByTagName("script")[0]; 
    s.parentNode.insertBefore(hm, s);
  })();
</script>


<footer class="page-footer"><span class="copyright">Copyright &#xA9; fsjohnhuang 2022 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">File Modify: 
2022-04-26 09:47:36
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="4_cleanup_algorithm.html" class="navigation navigation-prev " aria-label="Previous page: 依赖清理优化算法详解-算法思路">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="6_trigger_and_scheduler.html" class="navigation navigation-next " aria-label="Next page: 逐行解读trigger和调度器">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"依赖清理优化算法详解-基于JavaScript引擎的SMI进一步压榨性能","level":"3.6","depth":1,"next":{"title":"逐行解读trigger和调度器","level":"3.7","depth":1,"path":"2_reactivity_system/6_trigger_and_scheduler.md","ref":"2_reactivity_system/6_trigger_and_scheduler.md","articles":[]},"previous":{"title":"依赖清理优化算法详解-算法思路","level":"3.5","depth":1,"path":"2_reactivity_system/4_cleanup_algorithm.md","ref":"2_reactivity_system/4_cleanup_algorithm.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","-sharing","theme-comscore","search-pro","code","back-to-top-button","tbfed-pagefooter","chapter-fold","expandable-chapters","splitter","anchor-navigation-ex","donate","sharing-plus","baidu"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy fsjohnhuang 2022"},"chapter-fold":{},"splitter":{},"search-pro":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"code":{"copyButtons":true},"donate":{"alipay":"","alipayText":"支付宝打赏","button":"赞赏","title":"","wechat":"/petite-vue-source-reading/images/wechat.jpg","wechatText":"微信打赏"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"anchor-navigation-ex":{"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"mode":"float","multipleH1":true,"pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"printLog":false,"showGoTop":false,"showLevel":true},"theme-comscore":{},"back-to-top-button":{},"baidu":{"token":"8bca1e3aa362a7f85dbe8304cff65225"},"sharing":{"qq":false,"all":["qq","qzone","weibo","whatsapp","twitter","facebook","line"],"douban":false,"facebook":false,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"theme":"default","author":"^_^肥仔John","lang":"zh-cn","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"isbn":"","variables":{},"title":"petite-vue源码剖析","gitbook":"*","description":""},"file":{"path":"2_reactivity_system/5_smi.md","mtime":"2022-04-26T01:47:36.169Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-05-05T01:20:11.998Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-baidu/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-theme-comscore/test.js"></script>
        
    

    </body>
</html>

